package com.example.kspdemo

import com.example.processor.AutoGenerateCRUD
import com.example.processor.User
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@AutoGenerateCRUD(basePath = "/api/users")
@RestController("/api/users")
class UserController {
    // 可以添加自定义方法
    @GetMapping("/custom")
    fun customMethod(): String {
        return "Custom method"
    }
}